$.ajax({
   url:"getAjaxerror",
    type:"POST",
    async:false,
    success:function (data) {
       debugger;
       //打断点
        if(data.status==200&&data.msg=="ok"){
            alert("success");
        }else
        {
            alert("发生异常"+data.msg);
        }
    },
    error:function (response,ajaxOptions,thrownError) {
        alert("error");
    }
});